#test the JLEX package

#remove the package command in Main.java of JLEX, "package JLEX;".
#becase it always reprot Main function miss error by calling
# 	java JLEX.Main sample.tex
#so, we call this Main fucntion directly withour package as following
#	java Main sample.tex
#Besides, only when we call above command in the foalder of Main.java, it works correctly withour Main functin miss error. This procedure will be demostrated in following shell script

echo 'set the CLASSPATH for JLEX'
CLASSPATH=$CLASSPATH:`pwd`/JLEX
echo ''

echo 'compling JLEX'
echo 'javac Main.java'

#calling the javac Main.java in the foldar containg Main.java!!
cd JLEX
javac Main.java
echo ''

ehco 'test the function of JLEX'
echo 'java Main sample.lex'
java Main sample.lex

cd ..
